package zuoye1;

class Student {
    //定义属性
    private String name;
    private int id;
    private int bj;
    private String xb;
    private int age;
    private String xg;
    public Student(String name) {
        this.name = name;
    }
    public Student(int id, int bj, String xb, int age, String xg) {
        this.id = id;
        this.bj = bj;
        this.xb = xb;
        this.age = age;
        this.xg = xg;
    }
    public Student(String name, int id, int bj, String xb, int age, String xg){
        System.out.println(bj+"班的"+age+"岁的"+name+"是个"+xg+"的"+xb+"生"+",学号为"+id);
    }
}
public class zuoye1{
    public static void main(String[] args){
        Student stu=new Student("张三",001,1,"男",18,"法外狂徒");
        Student stu2=new Student("李四",002,2,"男",19,"内向");
        Student stu3=new Student("王五",003,3,"女",22,"外向");
    }
}
